from django.db import models
from django.utils import timezone
# Create your models here.

class UserManager(models.Manager):
    pass

class User(models.Model):
    user_name = models.CharField(max_length=64, unique=True, null=False)
    nick_name = models.CharField(max_length=64, blank=False)
    password = models.CharField(max_length=18, null=False)
    email = models.EmailField(blank=True)
    last_login = models.DateTimeField(default=timezone.now)
    objects = UserManager()